package com.gome.transactiontree.repository;

import com.gome.transactiontree.api.Transaction;
import com.gome.transactiontree.api.TransactionCallback;


public interface TransactionStore {
	
	Transaction get(final String transactionId);
	
	void put(final String transactionId,final Transaction transaction);
	
	void delete(final String transactionId);
	
	void foreach(final TransactionCallback<Object> action);
	
	void afterPropertiesSet() throws Exception;
	
	void destroy() throws Exception;
}